package com.kd.spring.aop;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpringAspectJ {
	
	
	@Test
	public void demo1(){
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("myAspectJApplicationContext.xml");
		StudentService studentService = (StudentService) applicationContext.getBean("studentService");
		studentService.chooseCourser();
		studentService.save();
		System.out.println(studentService.getStudentCount());
	}
}	
